package com.hb.core.pojo.center.au.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hb.core.pojo.center.au.dto.OrgDeptDTO;
import com.hb.core.pojo.center.au.entity.OrgDept;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 部门信息表 Mapper 接口
 * </p>
 *
 * @author zhaojk
 * @since 2021-11-29
 */
public interface OrgDeptMapper extends BaseMapper<OrgDept> {
    /**
     *
     * @Description:分页查询部门列表
     * @Author: zhongdl
     * @Date:2022/1/20 15:01
     * @param pages: 
     * @param orgDept:
     * @return: {@link Page< OrgDeptDTO> }
     **/
    Page<OrgDeptDTO> pageOrgDept(@Param("page") Page pages, @Param("orgDept") OrgDeptDTO orgDept);

    @Select("select * from au_org_dept od ${ew.customSqlSegment}")
    List<OrgDept> listDept(@Param(Constants.WRAPPER) QueryWrapper<OrgDept> wrapper);
}
